<form [formGroup]="loginForm" (ngSubmit)="onSubmit()">

  <div class="username">
    <input class="input" placeholder="证件号" formControlName="username"/>
  </div>

  <div class="password">
    <input class="input" type="password" placeholder="密码" formControlName="password"/>
  </div>

  <div class="button" align="left" style="float:left">
    <nav>
      <a (click)="onSubmit()">
        <button type="submit" [disabled]="!loginForm.valid">
          登 录
        </button>
      </a>
    </nav>
  </div>
  <div class="button2" align="right">
      <button (click)="toRegister()">注 册</button>
  </div>
  
  <div class="tip">
    {{tip}}
  </div>

</form>
